#include <string>
#include <math.h>
#include <iostream>
#include <stdlib.h>
#include <cstdlib>
#include <ctime> 

using namespace std;

int main(int argc, char *argv[]){
	srand((unsigned)time(0));
	int length = atoi(argv[1]);
	string value = "";
	for(int i = 0; i < length; i++){
		// chose a random number which will be converted to an
		// ascii character value
		int randNum = rand() % 128;
		// if the random number is either [ or ] we don't want it
		if(randNum > 122 || randNum < 97){ 
			i--;
		}
		else{
			value += (char)randNum;
		}
	}
	cout << value;
	return 0;
}
